package com.example.demo.bean;

import java.sql.Timestamp;

public class Order {
    private String orderNum;
    private String buyerNum;
    private String sellerNum;
    private Timestamp timestamp;
    private int orderCondition;//订单状态，0，1，2，3
    private int deleteFlag;//0,1,2
    private String goodsNum; //改订单包含的商品编号
    private int numOfGoods;//商品数量

    public Order() {
        orderNum = "";
        buyerNum = "";
        sellerNum = "";
        timestamp = new Timestamp(System.currentTimeMillis());
        orderCondition = 0;
        deleteFlag = 0;
        goodsNum = "";
        numOfGoods = 0;
    }

    public int getNumOfGoods() {
        return numOfGoods;
    }

    public void setNumOfGoods(int numOfGoods) {
        this.numOfGoods = numOfGoods;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getBuyerNum() {
        return buyerNum;
    }

    public void setBuyerNum(String buyersName) {
        this.buyerNum = buyersName;
    }

    public String getSellerNum() {
        return sellerNum;
    }

    public void setSellerNum(String sellerName) {
        this.sellerNum = sellerName;
    }

    public Timestamp getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }

    public int getOrderCondition() {
        return orderCondition;
    }

    public void setOrderCondition(int orderCondition) {
        this.orderCondition = orderCondition;
    }

    public int getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(int deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(String goodsNum) {
        this.goodsNum = goodsNum;
    }
}
